﻿using HCQ2_Model.BaneUser.APP.Params;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HCQ2_Model.BaneUser.APP.Params;
using HCQ2_Model.APPModel;

namespace HCQ2WebAPI_Logic.Model
{
    /// <summary>
    ///  VR对象注册模型
    /// </summary>
    public class VRRegisterUserModel
    {
        /// <summary>
        ///  登录名
        /// </summary>
        [Required]
        public string loginName { get; set; }
        /// <summary>
        ///  用户名
        /// </summary>
        [Required]
        public string userName { get; set; }
        /// <summary>
        ///  密码
        /// </summary>
        [Required]
        public string passWord { get; set; }
        /// <summary>
        ///  性别
        ///  男/女 默认：男
        /// </summary>
        public string userSex { get; set; } = "男";
        /// <summary>
        ///  身份证
        /// </summary>
        public string userIdentify { get; set; }
        /// <summary>
        ///  手机号
        /// </summary>
        public string cellPhone { get; set; }
        /// <summary>
        ///  电子邮件
        /// </summary>
        public string email { get; set; }
    }
    /// <summary>
    ///  忘记密码模型
    /// </summary>
    public class ModifyPasswod {
        /// <summary>
        ///  登录名
        /// </summary>
        [Required(ErrorMessage = "登录名必填项！")]
        public string loginName { get; set; }
        /// <summary>
        ///  新密码
        /// </summary>
        [Required(ErrorMessage = "新密码必填项！")]
        public string passWord { get; set; }
    }
    /// <summary>
    ///  修改密码模型
    /// </summary>
    public class ModifyPasswodModel
    {
        /// <summary>
        ///  登录名
        /// </summary>
        [Required(ErrorMessage ="登录名必填")]
        public string loginName { get; set; }
        /// <summary>
        ///  原始密码
        /// </summary>
        [Required(ErrorMessage = "原始密码必填")]
        public string oldPassWord { get; set; }
        /// <summary>
        ///  新密码
        /// </summary>
        [Required(ErrorMessage = "新密码必填")]
        public string newPassWord { get; set; }
    }
    /// <summary>
    ///  度度圈修改密码
    /// </summary>
    public class DDModifyPasswodModel
    {
        /// <summary>
        ///  用户id
        /// </summary>
        public int user_id { get; set; }
        /// <summary>
        ///  原始密码
        /// </summary>
        [Required(ErrorMessage = "原始密码必填")]
        public string oldPassWord { get; set; }
        /// <summary>
        ///  新密码
        /// </summary>
        [Required(ErrorMessage = "新密码必填")]
        public string newPassWord { get; set; }
    }
    /// <summary>
    ///  VR修改信息
    /// </summary>
    public class VRModifyUserModel: BaseBaneModel
    {
        /// <summary>
        ///  用户使用类别
        /// </summary>
        public int use_type { get; set; }
        /// <summary>
        ///  自己创建的课程数
        /// </summary>
        public int course_num { get; set; }
        /// <summary>
        ///  关注数
        /// </summary>
        public int focus_num { get; set; }
        /// <summary>
        ///  粉丝数
        /// </summary>
        public int fans_num { get; set; }
        /// <summary>
        ///  获赞数
        /// </summary>
        public int mark_star_num { get; set; }
        /// <summary>
        ///  作品数
        /// </summary>
        public int work_num { get; set; }
        /// <summary>
        ///  素材数
        /// </summary>
        public int manager_num { get; set; }
        /// <summary>
        ///  备注
        /// </summary>
        public string user_note { get; set; }
        /// <summary>
        ///  单位名
        /// </summary>
        public string user_unit { get; set; }
        /// <summary>
        ///  单位代码
        /// </summary>
        public string unit_code { get; set; }
        /// <summary>
        ///  V金币数
        /// </summary>
        public decimal buy_gold { get; set; }
        /// <summary>
        ///  赠送金币数
        /// </summary>
        public decimal give_gold { get; set; }
        /// <summary>
        ///  地址
        /// </summary>
        public string user_address { get; set; }
        /// <summary>
        ///  用户名
        /// </summary>
        public string user_name { get; set; }
        /// <summary>
        ///  头像地址
        /// </summary>
        public string headUrl { get; set; }
        /// <summary>
        ///  登录名
        /// </summary>
        public string loginName { get; set; }
        /// <summary>
        ///  性别
        ///  男/女 默认：男
        /// </summary>
        public string userSex { get; set; } = "男";
        /// <summary>
        ///  身份证
        /// </summary>
        public string userIdentify { get; set; }
        /// <summary>
        ///  手机号
        /// </summary>
        public string cellPhone { get; set; }
        /// <summary>
        ///  电子邮件
        /// </summary>
        public string email { get; set; }
        /// <summary>
        ///  拥有角色
        /// </summary>
        public List<RoleLimitModel> haveRole { get; set; }
    }
    /// <summary>
    ///  更新用户信息
    /// </summary>
    public class ModifyUserInfoMessage
    {
        /// <summary>
        ///  guid
        /// </summary>
        [Required(ErrorMessage ="用户内部编码必填！")]
        public string userid { get; set; }
        /// <summary>
        ///  备注
        /// </summary>
        public string user_note { get; set; }
        /// <summary>
        ///  登录名
        /// </summary>
        public string loginName { get; set; }
        /// <summary>
        ///  性别
        ///  男/女 默认：男
        /// </summary>
        public string userSex { get; set; } = "男";
        /// <summary>
        ///  身份证
        /// </summary>
        public string userIdentify { get; set; }
        /// <summary>
        ///  手机号
        /// </summary>
        public string cellPhone { get; set; }
        /// <summary>
        ///  电子邮件
        /// </summary>
        public string email { get; set; }
        /// <summary>
        ///  地址
        /// </summary>
        public string user_address { get; set; }
        /// <summary>
        ///  用户名
        /// </summary>
        public string user_name { get; set; }
    }

    public class ModifyPassword: BaseBaneModel
    {
        /// <summary>
        ///  旧密码
        /// </summary>
        [Required]
        public string oldPassword { get; set; }
        /// <summary>
        ///  新密码
        /// </summary>
        [Required]
        public string newPassword { get; set; }
    }
    /// <summary>
    ///  度度圈用户注册模型
    /// </summary>
    public class DDRegisterUserModel
    {
        /// <summary>
        ///  手机号
        /// </summary>
        [Required(ErrorMessage ="手机号码必填项！")]
        public string user_phone { get; set; }
        /// <summary>
        ///  手机验证码
        /// </summary>
        [Required(ErrorMessage = "手机验证码必填项！")]
        public string auth_code { get; set; }
        /// <summary>
        ///  用户名
        /// </summary>
        [Required(ErrorMessage = "用户名必填项！")]
        public string userName { get; set; }
        /// <summary>
        ///  登陆名
        /// </summary>
        [Required(ErrorMessage = "登陆名必填项！")]
        public string loginName { get; set; }
        /// <summary>
        ///  密码
        /// </summary>
        [Required(ErrorMessage = "密码必填项！")]
        public string passWord { get; set; }
    }
}
